<h1>Editing computer</h1>

<% form_for(@computer) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :mac_adress %><br />
    <%= f.text_field :mac_adress %>
  </p>
  <p>
    <%= f.label :ip_computer %><br />
    <%= f.text_field :ip_computer %>
  </p>
  <p>
    <%= f.label :ram %><br />
    <%= f.text_field :ram %>
  </p>
  <p>
    <%= f.label :cpu %><br />
    <%= f.text_field :cpu %>
  </p>
  <p>
    <%= f.label :hard_drive %><br />
    <%= f.text_field :hard_drive %>
  </p>
  <p>
    <%= f.label :state_computer %><br />
    <%= f.check_box :state_computer %>
  </p>
  <p>
    <%= f.label :state_agent %><br />
    <%= f.check_box :state_agent %>
  </p>
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>

<%= link_to 'Show', @computer %> |
<%= link_to 'Back', computers_path %>